#!/usr/env/bin python
# -*- coding: utf-8 -*-

# @Time    : 2021-01-14 9:27 上午
# @Author  : yangdy
# @File    : 1295.统计位数为偶数的数字
# @Software: PyCharmCE
from tools.my_methods import *


class Solution:
    def findNumbers(self, nums: List[int]) -> int:
        import math
        # return sum(1 if int(math.log(x) / math.log(10) + 1.0 + 1e-6) % 2 == 0 else 0 for x in nums)
        return sum(1 if int(math.log10(x) + 1.0) % 2 == 0 else 0 for x in nums)


questions = [
    ([12, 345, 2, 6, 7896],),
    ([555, 901, 482, 1771],),
    ([1000],),
]

work(questions, lambda q: Solution().findNumbers(q[0]))
